{{>partial_header}}

from setuptools import setup, find_packages  # noqa: H301

NAME = "{{{projectName}}}"
VERSION = "{{packageVersion}}"
{{#apiInfo}}
{{#apis}}
{{#-last}}
# To install the library, run the following
#
# python setup.py install
#
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools

# read the contents of README file
from pathlib import Path
this_directory = Path(__file__).parent
long_description = (this_directory / "README.md").read_text()

REQUIRES = [
  "urllib3 >= 1.25.3",
  "python-dateutil",
{{#asyncio}}
  "aiohttp >= 3.0.0",
{{/asyncio}}
{{#tornado}}
  "tornado>=4.2,<5",
{{/tornado}}
{{#hasHttpSignatureMethods}}
  "pem>=19.3.0",
  "pycryptodome>=3.9.0",
{{/hasHttpSignatureMethods}}
]

setup(
    name=NAME,
    version=VERSION,
    description="{{appName}}",
    author="{{infoName}}{{^infoName}}Konfig{{/infoName}}",
    author_email="{{infoEmail}}{{^infoEmail}}engineering@konfigthis.com{{/infoEmail}}",
    url="https://{{gitHost}}/{{gitUserId}}/{{gitRepoId}}",
    keywords=["Konfig", "{{{appName}}}"],
    python_requires="{{{generatorLanguageVersion}}}",
    install_requires=REQUIRES,
    packages=find_packages(exclude=["test", "tests"]),
    include_package_data=True,
    {{#licenseInfo}}license="{{.}}",
    {{/licenseInfo}}long_description=long_description,
    long_description_content_type='text/markdown'
)
{{/-last}}
{{/apis}}
{{/apiInfo}}
